//
//  OMProduct.m
//  OMENGO
//
//  Created by 梁尚嘉 on 2016/12/23.
//  Copyright © 2016年 Kamfat. All rights reserved.
//

#import "OMProduct.h"
@implementation OMSpecificationItem
@end
@implementation OMPromotion
@end
@implementation OMProduct
+ (NSDictionary *)mj_objectClassInArray
{
    return @{
             @"specification_items":[OMSpecificationItem class],
             @"promotions":[OMPromotion class],
             };
}

+ (NSArray *)mj_ignoredPropertyNames
{
    return @[@"quantity"];
}

- (NSString *)brand
{
    return [_brand stringByReplacingOccurrencesOfString:@"null" withString:@""];
}

- (NSString *)unit
{
    return [_unit stringByReplacingOccurrencesOfString:@"null" withString:@" "];
}
@end
